package com.example.activelifecycletest.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

/**
 * 自定义广播类
 * @author zhangding
 * @date 2022年04月21日15:07:34
 */
public class MyBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.d("zhang","进入广播");
        Toast.makeText(context,"received in MyBrodcast-Receiver",Toast.LENGTH_LONG).show();
    }
}
